<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="global.jsp"></jsp:include>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目详情</title>
</head>
<body>
<div id="projectDetail" class="easyui-tabs" style="width:100%;height:490px;">
	<div title="项目详情" style="padding:0px">
		<table width="100%" height="100%">
			<tr>
				<td width="130px" align="right">项目名称：</td>
				<td>
					<input class="easyui-textbox" value="${project.name }" style="width: 200px;" readonly="readonly" />
				</td>
				<td width="100px" align="right">项目代号：</td>
				<td>
					<input class="easyui-textbox" value="${project.projectCode }" style="width: 200px;" readonly="readonly" />
				</td>
				<td width="130px" align="right">项目来源:</td>
				<td>
					<input class="easyui-textbox" value="${project.projectSource.name }" style="width: 200px;" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right">报告频度:</td>
				<td>
					<input class="easyui-textbox" value="${project.projectReportFrequency.name }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">客户:</td>
				<td>
					<input class="easyui-textbox" value="${project.customer.name }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">项目类型:</td>
				<td>
					<input class="easyui-textbox" value="${project.projectType.name }" style="width: 200px;" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right">归属部门:</td>
				<td>
					<input class="easyui-textbox" value="${project.department.name }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">创建日期:</td>
				<td>
					<input class="easyui-textbox" value='<fmt:formatDate value="${project.createDate }"/>' style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">开始日期:</td>
				<td>
					<input class="easyui-textbox" value='<fmt:formatDate value="${project.createDate }"/>' style="width: 200px;" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right">计划完成日期:</td>
				<td>
					<input class="easyui-textbox" value='<fmt:formatDate value="${project.firstPlanFinishDate }"/>' style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">计划完成日期:</td>
				<td>
					<input class="easyui-textbox" value='<fmt:formatDate value="${project.planFinishDate }"/>' style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">实际完成日期:</td>
				<td>
					<input class="easyui-textbox" value='<fmt:formatDate value="${project.actualFinishDate }"/>' style="width: 200px;" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right">课题工号:</td>
				<td>
					<input class="easyui-textbox" value="${project.projectPlanNo }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">批次号:</td>
				<td>
					<input class="easyui-textbox" value="${project.projectBatchNo }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">计划消耗工时:</td>
				<td>
					<input class="easyui-textbox" value="${project.planConsumeWorkTime }" style="width: 200px;" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right">实际消耗工时:</td>
				<td>
					<input class="easyui-textbox" value="${project.actualConsumeWorktime }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">难度系数:</td>
				<td>
					<input class="easyui-textbox" value="${project.hardRate }" style="width: 200px;" readonly="readonly" />
				</td>
				<td align="right">计划完成时间变更次数:</td>
				<td>
					<input class="easyui-textbox" value="${project.planFinishDateChangeCount }" style="width: 200px;" readonly="readonly" />
				</td>
			</tr>
			<tr>
				<td align="right">项目描述：</td>
				<td colspan="7">
					<input class="easyui-textbox" value="${project.projectDescription }" style="width: 895px; height: 80px;" data-options="multiline:true" readonly="readonly" />
				</td>
			</tr>
		</table>
	</div>
	<div title="项目节点" style="padding:2px;">
		<table class="easyui-datagrid" id="projectMilestonedg" data-options="
				rownumbers:true,
				singleSelect: true,
				toolbar: '#projectMilestonetb',
				singleSelect:true,
				pagination:true,
				fit:true,
				fitColumns:true,
				pageList:[20,25,30,35,40,45,50],
				pageSize:20">
			<thead>
				<tr>
					<th data-options="field:'name',width:80,align:'center'">节点名称</th>
					<th data-options="field:'firstPlanFinishDate',width:80,align:'center'">初次计划完成日期</th>
					<th data-options="field:'planFinishDate',width:100,align:'center'">计划完成日期</th>
					<th data-options="field:'actualFinishDate',width:80">实际完成日期</th>
					<th data-options="field:'status',width:30,align:'center'">状态</th>
					<th data-options="field:'qualityCheckStatus',width:60,align:'center'">质量检测状态</th>
					<th data-options="field:'id',width:30,align:'center',formatter:projectMilestonetbFormatControl">查看</th>
				</tr>
			</thead>
		</table>
		
		<div id="projectMilestonetb" style="height:auto">
			<div>
				节点名称: <input class="easyui-textbox" type="text" id="projectMilestoneName" style="width:240px;height:25px;">
				<a href="javascript:projectMilestoneSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
		
		<div id="projectMilestoneLookDetail" class="easyui-window" title="项目节点详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:770px; height:450px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="120px;" align="right">节点名称：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" data-options="required:true" style="width: 540px; height: 80px;"  readonly="readonly" id="lookName">
							</td>
						</tr>
						<tr>
							<td align="right">状态：</td>
							<td>
								<input class="easyui-textbox" id="lookStatus" readonly="readonly" style="width: 200px;" />
							</td>
							<td width="100px;" align="right">质量检测点标志：</td>
							<td>
								<input class="easyui-datebox" readonly="readonly" id="lookQualityCheckSign" style="width: 200px;" />
							</td>
						</tr>
						<tr>
							<td align="right">成果物及形式：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 540px; height: 80px;"  readonly="readonly" id="lookDeliveryDescription">
							</td>
						</tr>
						<tr>
							<td align="right">初次计划完成日期：</td>
							<td>
								<input class="easyui-datebox" readonly="readonly" id="lookFirstPlanFinishDate" style="width: 200px;" />
							</td>
							<td align="right">计划完成时间：</td>
							<td>
								<input class="easyui-datebox"  readonly="readonly" id="lookPlanFinishDate" style="width: 200px;" />
							</td>
						</tr>
						<tr>
							<td align="right">实际完成日期：</td>
							<td>
								<input class="easyui-datebox"  readonly="readonly" id="lookActualFinishDate" style="width: 200px;" />
							</td>
							<td align="right">计划调整次数：</td>
							<td>
								<input id="lookPlanReviseCount" class="easyui-textbox" readonly="readonly" style="width: 200px;" >
							</td>
						</tr>
						<tr>
							<td align="right">备注：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 540px; height: 80px;" readonly="readonly" id="lookRemark">
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#projectMilestoneLookDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	<div title="人员构成" style="padding:2px;">
		<table id="projectMemberdg" class="easyui-datagrid"
			data-options="
				rownumbers:true,
				singleSelect: true,
				toolbar: '#projectMembertb',
				singleSelect:true,
				pagination:true,
				fit:true,
				fitColumns:true,
				pageList:[20,25,30,35,40,45,50],
				pageSize:20
			">
			<thead>
				<tr>
					<th data-options="field:'personName',width:80,align:'center'">成员姓名</th>
					<th data-options="field:'projectMemberTypeName',width:100,align:'center'">成员类型</th>
					<th data-options="field:'predictConsumeWorktime',width:80,align:'center'">预计消耗工时</th>
					<th data-options="field:'actualConsumeWorktime',width:80,align:'center'">实际消耗工时</th>
					<th data-options="field:'planEnterDate',width:80,align:'center'">计划介入日期</th>
					<th data-options="field:'planExitDate',width:80,align:'center'">计划退出日期</th>
					<th data-options="field:'duty',width:100,align:'center'">职责</th>
					<th data-options="field:'id',width:40,align:'center',formatter:projectMemberFormatControl">查看</th>
				</tr>
			</thead>
		</table>
		
		<div id="projectMembertb" style="height:auto">
			<div>
				成员姓名:
				<select data-options="editable: false" id = "person" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${projectPersons }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				项目成员类型名称:
				<select data-options="editable: false" id = "projectMemberType" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${projectMemberTypes }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				创建人:
				<select data-options="editable: false" id = "createPerson" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${createProjectPeoples }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				职责: <input class="easyui-textbox" type="text" id="duty" style="width:240px;height:25px;">
				<a href="javascript:projectMemberSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
		
		<div id="projectMemberlookDetail" class="easyui-window" title="项目成员详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:770px; height:400px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="160px;" align="right">成员姓名：</td>
							<td width="160px">
								<input class="easyui-textbox" id="lookPersonName" style="width: 200px;" readonly="readonly" />
							</td>
							<td width="150px;" align="right">项目名称：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectId" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td width="130px;" align="right">项目成员类型名称：</td>
							<td width="160px">
								<input class="easyui-textbox" id="lookProjectMemberTypeId" style="width: 200px;" readonly="readonly" />
							</td>
							<td width="130px;" align="right">创建人：</td>
							<td>
								<input class="easyui-textbox" id="lookCreatePersonId" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">预计消耗工时：</td>
							<td>
								<input class="easyui-textbox" id="lookPredictConsumeWorktime" style="width: 200px;" readonly="readonly" />
							</td>
							<td align="right">实际消耗工时：</td>
							<td>
								<input class="easyui-textbox" id="lookActualConsumeWorktime" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">计划介入项目日期：</td>
							<td>
								<input class="easyui-datebox" id="lookPlanEnterDate" style="width: 200px;" readonly="readonly" />
							</td>
							<td align="right">计划推出项目日期：</td>
							<td>
								<input class="easyui-datebox" id="lookPlanExitDate" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">项目职责：</td>
							<td>
								<input class="easyui-textbox" id="lookDuty" style="width: 200px;" readonly="readonly" />
							</td>
							<td align="right">工时系数：</td>
							<td>
								<input class="easyui-textbox" id="lookWorktimeRate" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">创建时间：</td>
							<td colspan="3">
								<input class="easyui-textbox" id="lookCreateTime" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">描述：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 555px; height: 80px;" id="lookRemark" readonly="readonly" />
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#projectMemberlookDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	<div title="干系人" style="padding:2px;">
		<table id="projectStakeholderdg" class="easyui-datagrid"
			data-options="
				rownumbers:true,
				iconCls: 'icon-edit',
				singleSelect: true,
				toolbar: '#projectStakeholdertb',
				singleSelect:true,
				pagination:true,
				fit:true,
				fitColumns:true,
				pageList:[20,25,30,35,40,45,50],
				pageSize:20
			">
		<thead>
			<tr>
				<th data-options="field:'name',width:80,align:'center'">姓名</th>
				<th data-options="field:'projectStakeholderTypeName',width:80,align:'center'">干系人类型</th>
				<th data-options="field:'department',width:100,align:'center'">部门</th>
				<th data-options="field:'post',width:80,align:'center'">职务</th>
				<th data-options="field:'personalTel',width:60,align:'center'">个人电话</th>
				<th data-options="field:'officeTel',width:60,align:'center'">办公电话</th>
				<th data-options="field:'id',width:40,align:'center',formatter:projectStakeholderFormatControl">管理</th>
			</tr>
		</thead>
		</table>
		
		<div id="projectStakeholdertb" style="height:auto">
			<div>
				干系人类别:
				<select data-options="editable: false" id = "projectStakeholderType" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${projectStakeholderTypes }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				项目干系人名称: <input class="easyui-textbox" type="text" id="name" style="width:240px;height:25px;">
				<a href="javascript:projectStakeholderSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
	
		<div id="projectStakeholderLookDetail" class="easyui-window" title="项目干系人详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:700px; height:370px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="150px;" align="right">干系人类别：</td>
							<td width="160px">
								<input class="easyui-textbox" id="lookProjectStakeholderTypeId" data-options="required:true" style="width: 200px;" readonly="readonly" />
							</td>
							<td width="130px;" align="right">所属项目：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectStakeholderProjectId" data-options="required:true" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">姓名：</td>
							<td>
								<input class="easyui-textbox" name="name" id="lookProjectStakeholderName" data-options="required:true" style="width: 200px;" readonly="readonly" />
							</td>
							<td align="right">部门：</td>
							<td>
								<input class="easyui-textbox" name="department" id="lookProjectStakeholderDepartment" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">职务：</td>
							<td colspan="3">
								<input class="easyui-textbox" name="post" id="lookProjectStakeholderPost" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">个人电话：</td>
							<td>
								<input class="easyui-textbox" name="personalTel" id="lookProjectStakeholderPersonalTel" style="width: 200px;" readonly="readonly" />
							</td>
							<td align="right">办公电话：</td>
							<td>
								<input class="easyui-textbox" name="officeTel" id="lookProjectStakeholderOfficeTel" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">描述：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 535px; height: 80px;" name="remark" id="lookProjectStakeholderRemark" readonly="readonly" />
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#projectStakeholderLookDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	<div title="交付计划" style="padding:2px;">
		<table id="projectProductdg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					singleSelect: true,
					toolbar: '#projectProducttb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[20,25,30,35,40,45,50],
					pageSize:20
				">
			<thead>
				<tr>
					<th data-options="field:'productName',width:200,align:'center'">产品代码</th>
					<th data-options="field:'batchNo',width:100,align:'center'">批次号</th>
					<th data-options="field:'planDeliveryNumber',width:100,align:'center'">计划交付数量</th>
					<th data-options="field:'actualDeliveryNumber',width:100,align:'center'">已交付数量</th>
					<th data-options="field:'id',width:20,align:'center',formatter:projectProductFormatControl">管理</th>
				</tr>
			</thead>
		</table>
	
		<div id="projectProducttb" style="height:auto">
			<div>
				产品名称:
				<select data-options="editable: false" id = "product" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${products }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				批次号: <input class="easyui-textbox" type="text" id="batchNo" style="width:240px;height:25px;">
				<a href="javascript:projectProductSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
	
		<div id="lookProjectProductDetail" class="easyui-window" title="项目产品详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:650px; height:230px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="120px;" align="right">产品名称：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectProductId" data-options="required:true" style="width: 200px;" readonly="readonly" />
							</td>
							<td width="120px;" align="right">批次号：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectProductBatchNo" data-options="required:true" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">计划交付数量：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectProductPlanDeliveryNumber" style="width: 200px;" readonly="readonly" />
							</td>
							<td align="right">实际交付数量：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectProductActualDeliveryNumber" style="width: 200px;" readonly="readonly" />
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookProjectProductDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	<div title="交付物" style="padding:2px;">
		<table id="projectDeliverydg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					singleSelect: true,
					toolbar: '#projectDeliverytb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[20,25,30,35,40,45,50],
					pageSize:20
				">
			<thead>
				<tr>
					<th data-options="field:'name',width:80,align:'center'">交付物名称</th>
					<th data-options="field:'productName',width:60,align:'center'">所属产品</th>
					<th data-options="field:'projectDeliveryTypeName',width:60,align:'center'">交付物类别</th>
					<th data-options="field:'batchNo',width:70,align:'center'">批次号</th>
					<th data-options="field:'deliveryNumber',width:40,align:'center'">交付数量</th>
					<th data-options="field:'unit',width:30,align:'center'">单位</th>				
					<th data-options="field:'ourHandler',width:60,align:'center'">我方经手人</th>				
					<th data-options="field:'deliveryDate',width:60,align:'center'">交付日期</th>
					<th data-options="field:'id',width:40,align:'center',formatter:projectDeliveryFormatControl">管理</th>
				</tr>
			</thead>
		</table>
	
		<div id="projectDeliverytb" style="height:auto">
			<div>
				批次号: <input class="easyui-textbox" type="text" id="batchNo" style="width:100px;height:25px;">
				我方经手人: 
				<input class="easyui-textbox" type="text" id="ourHandler" style="width:100px;height:25px;">
				交付日期：<input class="easyui-datebox"  id="deliveryDateBegin" style="width:100px;height:25px;">
				~ <input class="easyui-datebox"  id="deliveryDateEnd" style="width:100px;height:25px;">
				交付物名称: <input class="easyui-textbox" type="text" id="projectDeliveryName" style="width:100px;height:25px;">
				<a href="javascript:projectDeliverySearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
		
		<div id="lookProjectDeliveryDetail" class="easyui-window" title="交付物详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:1000px; height:450px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="100px" align="right">交付物名称：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryName" style="width: 180px;" readonly="readonly">
							</td>
							
							<td width="100px" align="right">所属产品：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryProductName" style="width: 180px;" readonly="readonly">
							</td>
							
							<td width="100px" align="right">交付物类别：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryProjectDeliveryTypeID" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">保修期限：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryWarrantyDate" style="width: 180px;" readonly="readonly">
							</td>	
							<td align="right">产品编号：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryProjectCode" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">批次号：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryBatchNo" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
					
						<tr>
							
							<td align="right">生产厂家：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryProducer" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">交付日期：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectDeliveryDeliveryDate" style="width: 180px;" readonly="readonly">
							</td>
							<td align="right">交付数量：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryDeliveryNumber" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">单位：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryUnit" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">状态：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryStatus" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">凭证号码：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryVoucherNo" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
						
						<tr>
							<td align="right">录入人：</td>						
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryInputPerson" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">录入日期：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectDeliveryInputTime" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">审核人：</td>						
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryCheckPerson" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
										
						<tr>
							<td align="right">审核日期：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectDeliveryCheckTime" style="width: 180px;" readonly="readonly">
							</td>
							<td align="right">我方经手人：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryOurHandler" style="width: 180px;" readonly="readonly">
							</td>
							
							<td align="right">对方经手人：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryCustomerHandler" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">交付方式：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryDeLiveryWay" style="width: 180px;" readonly="readonly">
							</td>
							<td align="right">交付地点：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectDeliveryDeliveryAddress" style="width: 180px;" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">备注：</td>
							<td colspan="5">
								<input class="easyui-textbox" id="lookProjectDeliveryRemark" style="width: 820px; height: 80px;" data-options="multiline:true" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">规格参数：</td>
							<td colspan="5">
								<input class="easyui-textbox" id="lookProjectDeliverySpec" readonly="readonly" style="width: 820px; height: 80px;" data-options="multiline:true" />
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookProjectDeliveryDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	<div title="项目任务" style="padding:2px;">
		<table id="projectTaskdg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					iconCls: 'icon-edit',
					singleSelect: true,
					toolbar: '#projectTasktb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[20,25,30,35,40,45,50],
					pageSize:20
				">
			<thead>
				<tr>
					<th data-options="field:'projectTaskTypeName',width:80,align:'center'">任务类型</th>
					<th data-options="field:'taskDescription',width:200,align:'center'">任务描述</th>
					<th data-options="field:'planFinishDate',width:60,align:'center'">计划完成日期</th>
					<th data-options="field:'status',width:40,align:'center'">状态</th>
					<th data-options="field:'id',width:30,align:'center',formatter:projectTaskFormatControl">查看</th>
				</tr>
			</thead>
		</table>
	
		<div id="projectTasktb" style="height:auto">
			<div>
				创建人:
				<select data-options="editable: false" id = "people" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${createProjectTaskPeoples }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				任务类型:
				<select data-options="editable: false" id = "projectTaskType" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${projectTaskTypes }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				发布时间: <input class="easyui-datebox" type="text" id="taskPublishTimeBegin" style="width:100px;height:25px;">
				~ <input class="easyui-datebox" type="text" id="taskPublishTimeEnd" style="width:100px;height:25px;">
				<a href="javascript:projectTaskSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
		
		<div id="lookProjectTaskDetail" class="easyui-window" title="项目任务详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:750px; height:360px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="100px;" align="right">创建人：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectTaskTaskCreatorId" readonly="readonly" style="width: 200px;" />
							</td>
							<td width="100px;" align="right">任务类型：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectTaskProjectTaskTypeId" readonly="readonly" style="width: 200px;" />
							</td>
						</tr>
						<tr>
							<td align="right">状态：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectTaskStatus" readonly="readonly" style="width: 200px;" />
							</td>
							<td align="right">创建日期：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectTaskTaskCreateTime" readonly="readonly" style="width: 200px;" />
							</td>
						</tr>
						<tr>
							<td align="right">计划完成日期：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectTaskPlanFinishDate" readonly="readonly" style="width: 200px;" />
							</td>
							<td align="right">实际完成日期：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectTaskTaskactuAlFinishDate" readonly="readonly" style="width: 200px;" />
							</td>
						</tr>
						<tr>
							<td align="right">计划工时数：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectTaskPlanWorktime" readonly="readonly" style="width: 200px;" />
							</td>
							<td align="right">实际工时数：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectTaskActualWorktime" readonly="readonly" style="width: 200px;" />
							</td>
						</tr>
						<tr>
							<td align="right">任务描述：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true, required:true" style="width: 560px; height: 100px;" id="lookProjectTaskTaskDescription" readonly="readonly">
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookProjectTaskDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	<div title="售后记录" style="padding:2px;">
		<table id="aftersaleRecorddg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					singleSelect: true,
					toolbar: '#aftersaleRecordtb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[20,25,30,35,40,45,50],
					pageSize:20
				">
			<thead>
				<tr>
					<th data-options="field:'productName',width:100,align:'center'">产品名称</th>
					<th data-options="field:'cusName',width:100,align:'center'">客户</th>
					<th data-options="field:'customerName',width:100,align:'center'">客户名称</th>
					<th data-options="field:'contactPerson',width:60,align:'center'">联系人</th>
					<th data-options="field:'contactPersonTel',width:80,align:'center'">联系方式</th>
					<th data-options="field:'outOfWarrantySign',width:40,align:'center'">是否过保</th>
					<th data-options="field:'registerTime',width:100,align:'center'">登记日期</th>
					<th data-options="field:'expectFinishDate',width:100,align:'center'">期望完成日期</th>
					<th data-options="field:'status',width:40,align:'center'">状态</th>
					<th data-options="field:'id',width:40,align:'center',formatter:aftersaleRecordFormatControl">查看</th>
				</tr>
			</thead>
		</table>
	
		<div id="aftersaleRecordtb" style="height:auto">
			<div>
				关联产品:
				<select data-options="editable: false" id = "product" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${products }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				客户名称:
				<select data-options="editable: false" id = "customer" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${aftersaleHandleCustomers }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				处理类型:
				<select data-options="editable: false" id = "aftersaleHandleType" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${aftersaleHandleTypes }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				登记人:
				<select data-options="editable: false" id = "registerPerson" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${aftersaleHandleRegisterPersons }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				处理人:
				<select data-options="editable: false" id = "handlePerson" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${aftersaleHandleHandlePersons }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				审核人:
				<select data-options="editable: false" id = "checkPerson" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${aftersaleHandleCheckPersons }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				登记日期: <input class="easyui-datebox" type="text" id="registerTimeBegin" style="width:100px;height:25px;">
				~ <input class="easyui-datebox" type="text" id="registerTimeEnd" style="width:100px;height:25px;">
				<a href="javascript:aftersaleRecordSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
		
		<div id="lookAftersaleRecordeDetail" class="easyui-window" title="售后记录详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:1100px; height:450px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
							<tr>
								<td width="130px;" align="right">关联产品：</td>
								<td colspan="3">
									<input class="easyui-textbox" id="lookAftersaleRecordeProductId" data-options="required:true" style="width:430px" readonly="readonly" />
								</td>
								<td width="160px;"  align="right">状态：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeStatus" data-options="required:true" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td width="130px;" align="right">登记人：</td>
								<td width="160px">
									<input class="easyui-textbox" id="lookAftersaleRecordeRegisterPersonId" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">是否过保：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeOutOfWarrantySign" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">登记日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeRegisterTime" data-options="required:true" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td align="right">产品序列号：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeProductSequenceNo" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">联系人：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeContactPerson" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">联系方式：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeContactPersonTel" data-options="required:true" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td width="200px;" align="right">问题描述：</td>
								<td colspan="5">
									<input class="easyui-textbox" data-options="multiline:true, required:true" style="width: 890px; height: 80px;" id="lookAftersaleRecordeIssueDescription" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td align="right">期望完成日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeExpectFinishDate" data-options="required:true" readonly="readonly" />
								</td>
								<td width="130px;" align="right">客户：</td>
								<td width="160px">
									<input class="easyui-textbox" id="lookAftersaleRecordeCusId" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">客户名称：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeCustomerName" data-options="required:true" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td width="130px;" align="right">处理人：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeHandlePersonId" data-options="required:true" readonly="readonly" />
								</td>
								<td width="130px;" align="right">处理类型：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeAftersaleHandleTypeId" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">返修日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeReturnDate" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td align="right">问题原因：</td>
								<td colspan="5">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 890px; height: 80px;" id="lookAftersaleRecordeIssueReason" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td align="right">处理描述：</td>
								<td colspan="5">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 890px; height: 80px;" id="lookAftersaleRecordeHandleDescription" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td align="right" rowspan="2">维修成本说明：</td>
								<td colspan="3" rowspan="2">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 450px; height: 80px;" id="lookAftersaleRecordeHandleCostDescription" readonly="readonly">
								</td>
								<td align="right">维修费用：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeHandleFee" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td align="right">维修成本：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeHandleCost" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td width="130px;" align="right">审核人：</td>
								<td width="160px">
									<input class="easyui-textbox" id="lookAftersaleRecordeCheckPersonId" data-options="required:true" readonly="readonly" />
								</td>
								<td align="right">审核日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeCheckTime" readonly="readonly" />
								</td>
								<td align="right">实际完成日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeActualFinishTime" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td align="right">售后处理工时：</td>
								<td>
									<input class="easyui-textbox" id="lookAftersaleRecordeConsumeWorktime" readonly="readonly" />
								</td>
								<td align="right">修好日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeFinishDate" readonly="readonly" />
								</td>
								<td align="right">交付日期：</td>
								<td>
									<input class="easyui-datebox" id="lookAftersaleRecordeDeliveryDate" readonly="readonly" />
								</td>
							</tr>
							<tr>
								<td align="right">备注：</td>
								<td colspan="5">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 890px; height: 80px;" id="lookAftersaleRecordeRemark" readonly="readonly">
								</td>
							</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookAftersaleRecordeDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	
	<div title="项目变更" style="padding:2px;">
		<table id="projectDelayApplydg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					singleSelect: true,
					toolbar: '#projectDelayApplytb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[5,10,15,20,25,30,35,40],
					pageSize:5
				">
			<thead>
				<tr>
					<th data-options="field:'applyPersonName',width:80,align:'center'">申请人</th>
					<th data-options="field:'applyTime',width:120,align:'center'">申请时间</th>
					<th data-options="field:'checkPersonName',width:80,align:'center'">审核人</th>
					<th data-options="field:'checkTime',width:120,align:'center'">审核时间</th>
					<th data-options="field:'ratifyPersonName',width:80,align:'center'">审批人</th>
					<th data-options="field:'ratifyTime',width:120,align:'center'">审批时间</th>
					<th data-options="field:'status',width:80,align:'center'">状态</th>
					<th data-options="field:'id',width:40,align:'center',formatter:projectDelayApplyFormatControl">查看</th>
				</tr>
			</thead>
		</table>
	
		<div id="projectDelayApplytb" style="height:auto">
			申请人:
			<select data-options="editable: false" id = "applyPerson" class="easyui-combobox">
				<option value = "-1"> --全部-- </option>
				<c:forEach var="item" items="${persons }" >
					<option value = "${item.id }">${item.name }</option>
				</c:forEach>
			</select>
			审核人:
			<select data-options="editable: false" id = "checkPerson" class="easyui-combobox">
				<option value = "-1"> --全部-- </option>
				<c:forEach var="item" items="${persons }" >
					<option value = "${item.id }">${item.name }</option>
				</c:forEach>
			</select>
			批准人:
			<select data-options="editable: false" id = "ratifyPerson" class="easyui-combobox">
				<option value = "-1"> --全部-- </option>
				<c:forEach var="item" items="${persons }" >
					<option value = "${item.id }">${item.name }</option>
				</c:forEach>
			</select>
			申请时间: <input class="easyui-datebox" type="text" id="applyTimeBegin" style="width:100px;height:25px;">
			~ <input class="easyui-datebox" type="text" id="applyTimeEnd" style="width:100px;height:25px;">
			<a href="javascript:projectDelayApplySearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
		</div>
		
		<div id="lookProjectDelayApplyDetail" class="easyui-window" title="项目延期申请详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:700px; height:490px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
							<tr>
								<td width="120px;" align="right">申请人：</td>
								<td>
									<input class="easyui-textbox" id="lookProjectDelayApplyApplyPersonId" readonly="readonly" style="width: 200px;" />
								</td>
								<td width="120px;" align="right">申请时间：</td>
								<td>
									<input class="easyui-datetimebox" id="lookProjectDelayApplyApplyTime" readonly="readonly" style="width: 200px;" />
								</td>
							</tr>
							<tr>
								<td align="right">原完成日期：</td>
								<td>
									<input class="easyui-datetimebox" id="lookProjectDelayApplyOriginalFinishDate" readonly="readonly" style="width: 200px;" />
								</td>
								<td align="right">目标完成日期：</td>
								<td>
									<input class="easyui-datetimebox" id="lookProjectDelayApplyTargetFinishDate" readonly="readonly" style="width: 200px;" />
								</td>
							</tr>
							<tr>
								<td align="right">状态：</td>
								<td colspan="3">
									<input class="easyui-textbox" id="lookProjectDelayApplyStatus" readonly="readonly" style="width: 200px;" />
								</td>
							</tr>
							<tr>
								<td align="right">申请理由：</td>
								<td colspan="3">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 530px; height: 80px;" id="lookProjectDelayApplyApplyReason" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td align="right">审核人：</td>
								<td>
									<input class="easyui-textbox" id="lookProjectDelayApplyCheckPersonId" readonly="readonly" style="width: 200px;" />
								</td>
								<td align="right">审核时间：</td>
								<td>
									<input class="easyui-datetimebox" id="lookProjectDelayApplyCheckTime" readonly="readonly" style="width: 200px;" />
								</td>
							</tr>
							<tr>
								<td align="right">审核意见：</td>
								<td colspan="3">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 530px; height: 80px;" id="lookProjectDelayApplyCheckComment" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td align="right">审批人：</td>
								<td>
									<input class="easyui-textbox" id="lookProjectDelayApplyRatifyPersonId" readonly="readonly" style="width: 200px;" />
								</td>
								<td align="right">审批时间：</td>
								<td>
									<input class="easyui-datetimebox" id="lookProjectDelayApplyRatifyTime" readonly="readonly" style="width: 200px;" />
								</td>
							</tr>
							<tr>
								<td align="right">审批意见：</td>
								<td colspan="3">
									<input class="easyui-textbox" data-options="multiline:true" style="width: 530px; height: 80px;" id="lookProjectDelayApplyRatifyComment" readonly="readonly">
								</td>
							</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookProjectDelayApplyDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
	
	<div title="项目节点变更" style="padding:2px;">
		<table id="projectMilestoneChangedg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					singleSelect: true,
					toolbar: '#projectMilestoneChangetb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[5,10,15,20,25,30,35,40],
					pageSize:5
				">
			<thead>
				<tr>
					<th data-options="field:'projectMilestoneName',width:100,align:'center'">项目节点</th>
					<th data-options="field:'applyPersonName',width:30,align:'center'">申请人</th>
					<th data-options="field:'applyTime',width:75,align:'center'">申请时间</th>
					<th data-options="field:'checkPersonName',width:30,align:'center'">审批人</th>
					<th data-options="field:'checkTime',width:75,align:'center'">审批时间</th>
					<th data-options="field:'ratifyPersonName',width:30,align:'center'">审核人</th>
					<th data-options="field:'ratifyTime',width:75,align:'center'">审核时间</th>
					<th data-options="field:'status',width:30,align:'center'">状态</th>
					<th data-options="field:'id',width:25,align:'center',formatter:projectMilestoneChangeFormatControl">查看</th>
				</tr>
			</thead>
		</table>
	
		<div id="projectMilestoneChangetb" style="height:auto">
			节点名称:
			<select data-options="editable: false" id = "projectMilestone" class="easyui-combobox">
				<option value = "-1"> --全部-- </option>
				<c:forEach var="item" items="${projectMilestones }" >
					<option value = "${item.id }">${item.name }</option>
				</c:forEach>
			</select>
			申请人姓名:
			<select data-options="editable: false" id = "applyPerson" class="easyui-combobox">
				<option value = "-1"> --全部-- </option>
				<c:forEach var="item" items="${projectMilestoneApplyPeoples }" >
					<option value = "${item.id }">${item.name }</option>
				</c:forEach>
			</select>
			审批人姓名:
			<select data-options="editable: false" id = "checkPerson" class="easyui-combobox">
				<option value = "-1"> --全部-- </option>
				<c:forEach var="item" items="${projectMilestoneCheckPeoples }" >
					<option value = "${item.id }">${item.name }</option>
				</c:forEach>
			</select>
			申请时间: <input class="easyui-datebox" id="applyTimeBegin" style="width:100px;height:25px;">
			~ <input class="easyui-datebox" id="applyTimeEnd" style="width:100px;height:25px;">
			<a href="javascript:projectMilestoneChangeSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
		</div>
		
		<div id="lookProjectMilestoneChangeDetail" class="easyui-window" title="项目节点变更详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:690px; height:400px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="130px;" align="right">节点名称：</td>
							<td width="160px">
								<input class="easyui-textbox" id="lookProjectMilestoneChangeProjectMilestoneId" readonly="readonly" />
							</td>
							<td width="130px;" align="right">申请人：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectMilestoneChangeApplyPersonId" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">调整前时间：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectMilestoneChangeOriginalDate" readonly="readonly" />
							</td>
							<td align="right">调整后时间：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectMilestoneChangeTargetDate" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">申请理由：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 530px; height: 80px;" id="lookProjectMilestoneChangeApplyReason" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">审批人：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectMilestoneChangeCheckPersonId" readonly="readonly" />
							</td>
							<td align="right">状态：</td>
							<td>
								<input class="easyui-textbox" id="lookProjectMilestoneChangeStatus" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">申请时间：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectMilestoneChangeApplyTime" readonly="readonly">
							</td>
							<td align="right">审批时间：</td>
							<td>
								<input class="easyui-datebox" id="lookProjectMilestoneChangeCheckTime" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">审批意见：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 530px; height: 80px;" id="lookProjectMilestoneChangeCheckComment" readonly="readonly">
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookProjectMilestoneChangeDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
	</div>
		
	<div title="项目报告" style="padding:2px;">
		<table id="projectReportdg" class="easyui-datagrid"
				data-options="
					rownumbers:true,
					singleSelect: true,
					toolbar: '#projectReporttb',
					singleSelect:true,
					pagination:true,
					fit:true,
					fitColumns:true,
					pageList:[20,25,30,35,40,45,50],
					pageSize:20
				">
			<thead>
				<tr>
					<th data-options="field:'peopleName',width:200,align:'center'">填写人</th>
					<th data-options="field:'workProgress',width:200,align:'center'">项目进展</th>
					<th data-options="field:'workPlan',width:200,align:'center'">项目计划</th>
					<th data-options="field:'issueDescription',width:200,align:'center'">项目问题</th>
					<th data-options="field:'id',width:40,align:'center',formatter:projectReportFormatControl">查看</th>
				</tr>
			</thead>
		</table>
	
		<div id="projectReporttb" style="height:auto">
			<div>
				填写人:
				<select data-options="editable: false" id = "people" class="easyui-combobox">
					<option value = "-1"> --全部-- </option>
					<c:forEach var="item" items="${projectResportPeoples }" >
						<option value = "${item.id }">${item.name }</option>
					</c:forEach>
				</select>
				项目问题：<input id="issueDescription" class="easyui-textbox" style="width: 200px;" />
				<a href="javascript:projectReportSearch()" class="easyui-linkbutton" iconCls="icon-search">查 找</a>
			</div>
		</div>
		
		<div id="lookProjectReportDetail" class="easyui-window" title="项目报告详情" data-options="modal:true,closed:true,iconCls:'icon-search'" style="width:680px; height:465px;padding:5px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px;">
					<table width="100%" height="100%">
						<tr>
							<td width="130px;" align="right">填写人：</td>
							<td>
								<input id="lookProjectResportPeopleId" class="easyui-textbox" style="width: 532px;" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right">项目进展：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 532px; height: 80px;" id="lookProjectResportWorkProgress" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">项目计划：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 532px; height: 80px;" id="lookProjectResportWorkPlan" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">项目问题：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 532px; height: 80px;" id="lookProjectResportIssueDescription" readonly="readonly">
							</td>
						</tr>
						<tr>
							<td align="right">描述：</td>
							<td colspan="3">
								<input class="easyui-textbox" data-options="multiline:true" style="width: 532px; height: 80px;" id="lookProjectResportRemark" readonly="readonly">
							</td>
						</tr>
					</table>
				</div>
				<div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:$('#lookProjectReportDetail').window('close')" style="width:80px">关 闭</a>
				</div>
			</div>
		</div>
		
	</div>
</div>
	
<script type="text/javascript">
	function projectMilestonetbFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="projectMilestoneLookDetail(' + val + ')">查看</a>';
	}
	function projectMilestoneSearch(){
		var projectMilestoneName = $("#projectMilestoneName").textbox("getValue");
		var url = "queryProjectMilestone?name=" + projectMilestoneName + "&projectId=${project.id}";
		$("#projectMilestonedg").datagrid('reload', url);
	}
	function projectMilestoneLookDetail(id){
		var params = "id=" + id;
		$.ajax({
		  type: "GET",
		  url: "findQualityProjectMilestone",
		  data: params,
		  success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookPlanReviseCount").textbox("setValue", item.planReviseCount);
					$("#lookName").textbox("setValue", item.name);
					$("#lookDeliveryDescription").textbox("setValue", item.deliveryDescription);
					$("#lookFirstPlanFinishDate").textbox("setValue", item.firstPlanFinishDate);
					$("#lookPlanFinishDate").textbox("setValue", item.planFinishDate);
					$("#lookActualFinishDate").textbox("setValue", item.actualFinishDate);
					$("#lookQualityCheckSign").textbox("setValue", item.qualityCheckSign == "Y"?"是":"否");
					$("#lookStatus").textbox("setValue", item.status);
					$("#lookRemark").textbox("setValue", item.remark);
					
					$('#projectMilestoneLookDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/*******************************************************************************************/
	function projectMemberFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookDetail(' + val + ')">查看</a>';
	}
	function lookDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectMember",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookPersonName").textbox("setValue", item.personName);
					$("#lookProjectId").textbox("setValue", item.projectName);
					$("#lookCreatePersonId").textbox("setValue", item.createPersonName);
					$("#lookProjectMemberTypeId").textbox("setValue", item.projectMemberTypeName);
					$("#lookPredictConsumeWorktime").textbox("setValue", item.predictConsumeWorktime);
					$("#lookActualConsumeWorktime").textbox("setValue", item.actualConsumeWorktime);
					$("#lookPlanEnterDate").textbox("setValue", item.planEnterDate);
					$("#lookPlanExitDate").textbox("setValue", item.planExitDate);
					$("#lookDuty").textbox("setValue", item.duty);
					$("#lookWorktimeRate").textbox("setValue", item.worktimeRate);
					$("#lookCreateTime").textbox("setValue", item.createTime);
					$("#lookRemark").textbox("setValue", item.remark);
					
					$('#projectMemberlookDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	function projectMemberSearch(){
		var person = $("#person").combobox("getValue");
		var projectMemberType = $("#projectMemberType").combobox("getValue");
		var createPerson = $("#createPerson").combobox("getValue");
		var duty = $("#duty").textbox("getValue").trim();
		var url = "queryProjectMember?duty=" + duty + "&personId=" + person + "&projectId=${project.id}&projectMemberTypeId=" + projectMemberType + "&createPersonId=" + createPerson;
		$("#projectMemberdg").datagrid('reload', url);
	}
	/********************************************************************************************/
	function projectStakeholderFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="projectStakeholderLookDetail(' + val + ')">查看</a>';
	}
	function projectStakeholderSearch(){
		var name = $("#name").textbox("getValue");
		var projectStakeholderType = $("#projectStakeholderType").combobox("getValue");
		var url = "queryProjectStakeholder?name=" + name + "&projectStakeholderTypeId=" + projectStakeholderType + "&projectId=${project.id}";
		$("#projectStakeholderdg").datagrid('reload', url);
	}
	function projectStakeholderLookDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectStakeholder",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectStakeholderProjectId").textbox("setValue", item.projectName);
					$("#lookProjectStakeholderTypeId").textbox("setValue", item.projectStakeholderTypeName);
					$("#lookProjectStakeholderName").textbox("setValue", item.name);
					$("#lookProjectStakeholderDepartment").textbox("setValue", item.department);
					$("#lookProjectStakeholderPost").textbox("setValue", item.post);
					$("#lookProjectStakeholderPersonalTel").textbox("setValue", item.personalTel);
					$("#lookProjectStakeholderOfficeTel").textbox("setValue", item.officeTel);
					$("#lookProjectStakeholderRemark").textbox("setValue", item.remark);
					
					$('#projectStakeholderLookDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	function projectProductFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookProjectProductDetail(' + val + ')">查看</a>';
	}
	function projectProductSearch(){
		var product = $("#product").combobox("getValue");
		var batchNo = $("#batchNo").textbox("getValue").trim();
		var url = "queryProjectProduct?batchNo=" + batchNo + "&projectId=${project.id}&productId=" + product;
		$("#projectProductdg").datagrid('reload', url);
	}
	function lookProjectProductDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectProduct",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectProductProjectId").textbox("setValue", item.projectName);
					$("#lookProjectProductId").textbox("setValue", item.productName);
					$("#lookProjectProductBatchNo").textbox("setValue", item.batchNo);
					$("#lookProjectProductPlanDeliveryNumber").textbox("setValue", item.planDeliveryNumber);
					$("#lookProjectProductActualDeliveryNumber").textbox("setValue", item.actualDeliveryNumber);
					
					$('#lookProjectProductDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	function projectDeliveryFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookProjectDeliveryDetail(' + val + ')">查看</a>';
	}
	function projectDeliverySearch(){
		var name = $("#projectDeliveryName").textbox("getValue").trim();
		var batchNo = $("#batchNo").textbox("getValue").trim();
		var ourHandler = $("#ourHandler").textbox("getValue").trim();
		var deliveryDateBegin = $("#deliveryDateBegin").textbox("getValue").trim();
		var deliveryDateEnd = $("#deliveryDateEnd").textbox("getValue").trim();
		var url = "queryProjectDelivery?projectID=${project.id}&status=3000&batchNo=" + batchNo + "&ourHandler=" + ourHandler + "&deliveryDateBegin=" + deliveryDateBegin + "&deliveryDateEnd=" + deliveryDateEnd + "&name=" + name;
		$("#projectDeliverydg").datagrid('reload', url);
	}
	function lookProjectDeliveryDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectDelivery",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectDeliveryProjectID").textbox("setValue", item.projectName);
					$("#lookProjectDeliveryProductName").textbox("setValue", item.productName);
					$("#lookProjectDeliveryDeLiveryWay").textbox("setValue", item.deliveryWayName);
					$("#lookProjectDeliveryProjectDeliveryTypeID").textbox("setValue", item.projectDeliveryTypeName);
					
					$("#lookProjectDeliveryInputPerson").textbox("setValue", item.inputPersonName);
					$("#lookProjectDeliveryCheckPerson").textbox("setValue", item.checkPersonName);
					$("#lookProjectDeliveryProducer").textbox("setValue", item.producer);
					$("#lookProjectDeliveryProjectCode").textbox("setValue", item.projectCode);
					$("#lookProjectDeliveryName").textbox("setValue", item.name);
					$("#lookProjectDeliveryBatchNo").textbox("setValue", item.batchNo);
					$("#lookProjectDeliverySpec").textbox("setValue", item.spec);
					$("#lookProjectDeliveryUnit").textbox("setValue", item.unit);
					$("#lookProjectDeliveryDeliveryNumber").textbox("setValue", item.deliveryNumber);
					$("#lookProjectDeliveryDeliveryDate").textbox("setValue", item.deliveryDate);
					$("#lookProjectDeliveryOurHandler").textbox("setValue", item.ourHandler);
					$("#lookProjectDeliveryCustomerHandler").textbox("setValue", item.customerHandler);
					$("#lookProjectDeliveryDeliveryAddress").textbox("setValue", item.deliveryAddress);
					$("#lookProjectDeliveryVoucherNo").textbox("setValue", item.voucherNo);
					$("#lookProjectDeliveryRemark").textbox("setValue", item.remark);
					$("#lookProjectDeliveryInputTime").textbox("setValue", item.inputTime);
					$("#lookProjectDeliveryCheckTime").textbox("setValue", item.checkTime);
					$("#lookProjectDeliveryStatus").textbox("setValue", item.status);
					$("#lookProjectDeliveryWarrantyDate").textbox("setValue", item.warrantyDate);
					
					$('#lookProjectDeliveryDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	function projectTaskFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookProjectTaskDetail(' + val + ')">查看</a>';
	}
	function projectTaskSearch(){
		var people = $("#people").combobox("getValue");
		var projectTaskType = $("#projectTaskType").combobox("getValue");
		var taskPublishTimeBegin = $("#taskPublishTimeBegin").textbox("getValue").trim();
		var taskPublishTimeEnd = $("#taskPublishTimeEnd").textbox("getValue").trim();
		var url = "queryProjectTask?projectId=${project.id}&taskCreatorId=" + people + "&projectTaskTypeId=" + projectTaskType + "&taskPublishTimeBegin=" + taskPublishTimeBegin + "&taskPublishTimeEnd=" + taskPublishTimeEnd;
		$("#projectTaskdg").datagrid('reload', url);
	}
	function lookProjectTaskDetail(id){
		var params = "id=" + id;
		$.ajax({
		  type: "GET",
		  url: "findProjectTask",
		  data: params,
		  success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectTaskTaskCreatorId").textbox("setValue", item.taskCreatorName);
					$("#lookProjectTaskProjectTaskTypeId").textbox("setValue", item.projectTaskTypeName);
					$("#lookProjectTaskTaskCreateTime").textbox("setValue", item.taskCreateTime);
					$("#lookProjectTaskTaskPublishTime").textbox("setValue", item.taskPublishTime);
					$("#lookProjectTaskTaskBeginDate").textbox("setValue", item.taskBeginDate);
					$("#lookProjectTaskTaskactuAlFinishDate").textbox("setValue", item.actualFinishDate);
					$("#lookProjectTaskPlanFinishDate").textbox("setValue", item.planFinishDate);
					$("#lookProjectTaskTaskAcceptTime").textbox("setValue", item.taskAcceptTime);
					$("#lookProjectTaskTaskDescription").textbox("setValue", item.taskDescription);
					$("#lookProjectTaskPlanWorktime").textbox("setValue", item.planWorktime);
					$("#lookProjectTaskActualWorktime").textbox("setValue", item.actualWorktime);
					$("#lookProjectTaskStatus").textbox("setValue", item.status);
					
					$('#lookProjectTaskDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	function aftersaleRecordFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookAftersaleRecordeDetail(' + val + ')">查看</a>';
	}
	function aftersaleRecordSearch(){
		var dg = $("#aftersaleRecorddg");
		var product = $("#product").combobox("getValue");
		var customer = $("#customer").combobox("getValue");
		var aftersaleHandleType = $("#aftersaleHandleType").combobox("getValue");
		var register = $("#registerPerson").combobox("getValue");
		var handlePerson = $("#handlePerson").combobox("getValue");
		var checkPerson = $("#checkPerson").combobox("getValue");
		var registerTimeBegin = $("#registerTimeBegin").textbox("getValue").trim();
		var registerTimeEnd = $("#registerTimeEnd").textbox("getValue").trim();
		var url = "queryAftersaleRecord?projectId=${project.id}&productId=" + product + "&customerId=" + customer + "&aftersaleHandleTypeId=" + aftersaleHandleType + "&handlePersonId=" + handlePerson + "&checkPerson=" + checkPerson + "&registerTimeBegin=" + registerTimeBegin + "&registerTimeEnd=" + registerTimeEnd + "&registerPersonId=" + register;
		dg.datagrid('reload', url);
	}
	function lookAftersaleRecordeDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "delAftersaleRecord",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookAftersaleRecordeRegisterPersonId").textbox("setValue", item.registerPersonId);
					$("#lookAftersaleRecordeProductId").textbox("setValue", item.productId);
					$("#lookAftersaleRecordeCusId").textbox("setValue", item.cusId);
					$("#lookAftersaleRecordeHandlePersonId").textbox("setValue", item.handlePersonId);
					$("#lookAftersaleRecordeAftersaleHandleTypeId").textbox("setValue", item.aftersaleHandleTypeId);
					$("#lookAftersaleRecordeCheckPersonId").textbox("setValue", item.checkPersonId);
					$("#lookAftersaleRecordeIssueDescription").textbox("setValue", item.issueDescription);
					$("#lookAftersaleRecordeOutOfWarrantySign").textbox("setValue", item.outOfWarrantySign);
					$("#lookAftersaleRecordeRegisterTime").textbox("setValue", item.registerTime);
					$("#lookAftersaleRecordeExpectFinishDate").textbox("setValue", item.expectFinishDate);
					$("#lookAftersaleRecordeCustomerName").textbox("setValue", item.customerName);
					$("#lookAftersaleRecordeContactPerson").textbox("setValue", item.contactPerson);
					$("#lookAftersaleRecordeContactPersonTel").textbox("setValue", item.contactPersonTel);
					$("#lookAftersaleRecordeStatus").textbox("setValue", item.status);
					$("#lookAftersaleRecordeActualFinishTime").textbox("setValue", item.actualFinishTime);
					$("#lookAftersaleRecordeConsumeWorktime").textbox("setValue", item.consumeWorktime);
					$("#lookAftersaleRecordeProductSequenceNo").textbox("setValue", item.productSequenceNo);
					$("#lookAftersaleRecordeCheckTime").textbox("setValue", item.checkTime);
					$("#lookAftersaleRecordeReturnDate").textbox("setValue", item.returnDate);
					$("#lookAftersaleRecordeFinishDate").textbox("setValue", item.finishDate);
					$("#lookAftersaleRecordeDeliveryDate").textbox("setValue", item.deliveryDate);
					$("#lookAftersaleRecordeIssueReason").textbox("setValue", item.issueReason);
					$("#lookAftersaleRecordeHandleDescription").textbox("setValue", item.handleDescription);
					$("#lookAftersaleRecordeHandleCostDescription").textbox("setValue", item.handleCostDescription);
					$("#lookAftersaleRecordeHandleFee").textbox("setValue", item.handleFee);
					$("#lookAftersaleRecordeHandleCost").textbox("setValue", item.handleCost);
					$("#lookAftersaleRecordeRemark").textbox("setValue", item.remark);
					
					$('#lookAftersaleRecordeDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	function projectMilestoneChangeFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookProjectMilestoneChangeDetail(' + row.id + ')">查看</a>';
	}
	function projectMilestoneChangeSearch(){
		var projectMilestone = $("#projectMilestone").combobox("getValue");
		var applyPerson = $("#applyPerson").combobox("getValue");
		var checkPerson = $("#checkPerson").combobox("getValue");
		var applyTimeBegin = $("#applyTimeBegin").textbox("getValue").trim();
		var applyTimeEnd = $("#applyTimeEnd").textbox("getValue").trim();
		var url = "queryProjectMilestoneChange?projectMilestone=" + projectMilestone + "&applyPerson=" + applyPerson + "&applyTimeBegin=" + applyTimeBegin + "&checkPerson=" + checkPerson + "&applyTimeEnd=" + applyTimeEnd;
		
		$("#projectMilestoneChangedg").datagrid('reload', url);
	}
	function lookProjectMilestoneChangeDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectMilestoneChange",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectMilestoneChangeApplyTime").textbox("setValue", item.applyTime);
					$("#lookProjectMilestoneChangeProjectMilestoneId").textbox("setValue", item.projectMilestoneName);
					$("#lookProjectMilestoneChangeApplyPersonId").textbox("setValue", item.applyPersonName);
					$("#lookProjectMilestoneChangeCheckPersonId").textbox("setValue", item.checkPersonName);
					$("#lookProjectMilestoneChangeOriginalDate").textbox("setValue", item.originalDate);
					$("#lookProjectMilestoneChangeTargetDate").textbox("setValue", item.targetDate);
					$("#lookProjectMilestoneChangeApplyReason").textbox("setValue", item.applyReason);
					$("#lookProjectMilestoneChangeCheckTime").textbox("setValue", item.checkTime);
					$("#lookProjectMilestoneChangeStatus").textbox("setValue", item.status);
					$("#lookProjectMilestoneChangeCheckComment").textbox("setValue", item.checkComment);
					
					$('#lookProjectMilestoneChangeDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/*************************************************************************/
	function projectDelayApplyFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookProjectDelayApplyDetail(' + row.id + ')">查看</a>';
	}
	function projectDelayApplySearch(){
		var dg = $("#projectDelayApplydg");
		var applyPerson = $("#applyPerson").combobox("getValue");
		var checkPerson = $("#checkPerson").combobox("getValue");
		var ratifyPerson = $("#ratifyPerson").combobox("getValue");
		var applyTimeBegin = $("#applyTimeBegin").textbox("getValue").trim();
		var applyTimeEnd = $("#applyTimeEnd").textbox("getValue").trim();
		var url = "queryProjectDelayApply?applyTimeBegin=" + applyTimeBegin + "&applyTimeEnd=" + applyTimeEnd + "&projectId=${project.id}&applyPersonId=" + applyPerson + "&checkPersonId=" + checkPerson + "&ratifyPersonId=" + ratifyPerson;
		dg.datagrid('reload', url);
	}
	function lookProjectDelayApplyDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectDelayApply",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectDelayApplyApplyPersonId").textbox("setValue", item.applyPersonName);
					$("#lookProjectDelayApplyCheckPersonId").textbox("setValue", item.checkPersonName);
					$("#lookProjectDelayApplyRatifyPersonId").textbox("setValue", item.ratifyPersonName);
					$("#lookProjectDelayApplyOriginalFinishDate").textbox("setValue", item.originalFinishDate);
					$("#lookProjectDelayApplyTargetFinishDate").textbox("setValue", item.targetFinishDate);
					$("#lookProjectDelayApplyApplyTime").textbox("setValue", item.applyTime);
					$("#lookProjectDelayApplyApplyReason").textbox("setValue", item.applyReasonName);
					$("#lookProjectDelayApplyCheckTime").textbox("setValue", item.checkTime);
					$("#lookProjectDelayApplyCheckComment").textbox("setValue", item.checkComment);
					$("#lookProjectDelayApplyRatifyTime").textbox("setValue", item.ratifyTime);
					$("#lookProjectDelayApplyRatifyComment").textbox("setValue", item.ratifyComment);
					$("#lookProjectDelayApplyStatus").textbox("setValue", item.status);
					
					$('#lookProjectDelayApplyDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	function projectReportFormatControl(val, row){
		return '<a class="ctl" href="javascript:void(0)" onclick="lookProjectReportDetail(' + val + ')">查看</a>';
	}
	function projectReportSearch(){
		var people = $("#people").combobox("getValue");
		var issueDescription = $("#issueDescription").textbox("getValue");
		var url = "queryProjectReport?projectId=${project.id}&peopleId=" + people + "&issueDescription=" + issueDescription;
		$("#projectReportdg").datagrid('reload', url);
	}
	function lookProjectReportDetail(id){
		var params = "id=" + id;
		$.ajax({
		  	type: "GET",
		  	url: "findProjectReport",
		  	data: params,
		  	success:function(data){
			  	var val = $.parseJSON(data);
				if(val.success){
					var item = val.data;

					$("#lookProjectResportPeopleId").textbox("setValue", item.peopleName);
					$("#lookProjectResportWorkProgress").textbox("setValue", item.workProgress);
					$("#lookProjectResportWorkPlan").textbox("setValue", item.workPlan);
					$("#lookProjectResportIssueDescription").textbox("setValue", item.issueDescription);
					$("#lookProjectResportRemark").textbox("setValue", item.remark);
					
					$('#lookProjectReportDetail').window('open');
				}else{
					$.messager.alert("提示", val.msg, "error");
				}
		  	}
		});
	}
	/********************************************************************************************/
	$(function(){
		/*
		$("#projectDetail").tabs({
		    onSelect:function(title){   
		           
		    } 
		});
		*/
		projectMilestoneSearch();
		projectMemberSearch();
		projectStakeholderSearch();
		projectProductSearch();
		projectDeliverySearch();
		projectTaskSearch();
		aftersaleRecordSearch();
		projectMilestoneChangeSearch();
		projectDelayApplySearch();
		projectReportSearch();
	});
</script>
</body>
</html>